package cn.zou;

import java.io.InputStream;
import java.util.Scanner;

public class Index {
	public Personal profile=new Personal();
	public Works works=new Works();
	public static void main(String[] args) {
		Index index=new Index();
		//循环读取int 
		while(true){
			try {
				index.PrintIndex();
				Scanner scanner=new Scanner(System.in);
				Integer nextInt = scanner.nextInt();
					if(nextInt==1)index.profile.PrintPersonal();
					if(nextInt==2)index.works.PrintWorks();
					if(nextInt==3)System.exit(0);
			} catch (Exception e) {
				System.out.println("╮(￣▽ ￣)╭ 是不是输入了什么不该输入的 请重新输入哦");
				System.out.println("--------------------------------------------------");
			}
		}
		
		
	}
	public void PrintIndex(){
		System.out.println("欢迎来到我的简历");
		System.out.println("-------------------");
		System.out.println("查看个人简介请输入1");
		System.out.println("项目作品请输入2");
		System.out.println("退出请输入3");
		System.out.println("-------------------");
	}
}
